/*
*  Copyright 2019-2023 oyun
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/package com.oyun.modules.medicine.domain;

import com.oyun.base.BaseEntity;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author aoyun
* @date 2024-05-08
**/
@Data
@TableName("vaccine")
public class Vaccine extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "蒙语疫苗名称")
    private String mnName;

    @ApiModelProperty(value = "mnNameCode")
    private String mnNameCode;

    @ApiModelProperty(value = "zhName")
    private String zhName;

    @ApiModelProperty(value = "蒙语接种者")
    private String mnInoculator;

    @ApiModelProperty(value = "mnInoculatorCode")
    private String mnInoculatorCode;

    @ApiModelProperty(value = "zhInoculator")
    private String zhInoculator;

    @ApiModelProperty(value = "蒙语接种方式")
    private String mnInoculationMethod;

    @ApiModelProperty(value = "mnInoculationMethodCode")
    private String mnInoculationMethodCode;

    @ApiModelProperty(value = "zhInoculationMethod")
    private String zhInoculationMethod;

    @ApiModelProperty(value = "免疫期")
    private String immunityPeriod;

    @ApiModelProperty(value = "免疫期单位（字典）")
    private String immunityPeriodUnit;

    @ApiModelProperty(value = "蒙语存储方式")
    private String mnStorageMethod;

    @ApiModelProperty(value = "mnStorageMethodCode")
    private String mnStorageMethodCode;

    @ApiModelProperty(value = "zhStorageMethod")
    private String zhStorageMethod;

    @ApiModelProperty(value = "蒙语属性")
    private String mnStats;

    @ApiModelProperty(value = "zhStats")
    private String zhStats;

    @ApiModelProperty(value = "mnStatsCode")
    private String mnStatsCode;


    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "remark")
    private String remark;

    public void copy(Vaccine source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
